package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.CerTreatmentInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = CerTreatmentInfoServiceFallback.class)
public interface CerTreatmentInfoService {

    @PostMapping("/cdcerserver/v1/treatment/update")
    JsonObj update(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/treatment/findById")
    JsonObj findById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/treatment/add")
    JsonObj add(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/treatment/listAllData")
    JsonObj listAllData(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/treatment/deleteById")
    JsonObj deleteById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/treatment/queryAllExportData")
    JsonObj queryAllExportData(@RequestBody PageData pageData);

}
